package com.ljtg.ljtgpojo.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@Schema(name = "User", description = "用户实体类")
public class User {
    @Schema(description = "主键", example = "1")
    private Long id;

    @Schema(description = "微信用户唯一标识", example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M")
    private String openid;

    @Schema(description = "姓名", example = "John Doe")
    private String name;

    @Schema(description = "手机号", example = "13800138000")
    private String phone;

    @Schema(description = "性别", example = "男")
    private String sex;

    @Schema(description = "头像", example = "http://example.com/avatar.jpg")
    private String avatar;

    @Schema(description = "创建时间", example = "2023-10-01T12:00:00")
    private LocalDateTime createTime;
}